<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>vue基础模板</title>
    <script src="../vue.js"></script>
    <style>
        div {
            /* font-family: STXingkai; */
        }
    </style>
</head>

<body>
    <div id="app">
        <h1 :style="{color:'#3cf',fontFamily:'STXinwei'}">{{name}}</h1>
        <h1 :style="styleCss">{{name}}</h1>
        <h1 :style="styleArrCss">{{name}}</h1>
    </div>

    <script>
        Vue.config.productionTip = false;
        const vm = new Vue({
            el: "#app",
            data() {
                return {
                    name: '无人可见，无人能敌',
                    styleCss: {
                        fontWeight: '1',
                        color: 'pink',
                        fontStyle: 'italic',
                        fontFamily: 'STCaiyun'
                    },
                    styleArrCss: [
                        { fontWeight: '5' },
                        { color: '#ddd' },
                        { fontFamily: 'STXingkai' }
                    ]
                }
            }
        })
    </script>
</body>

</html>